<template>
  <div class="home-main">
    <div class="home-background" @click="switcIntroduce">
      <span>{{content}}</span>
      </div>
    <!-- <div v-else class="home-background">配电岗位胜任力介绍，价值说明</div> -->
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  },
  data(){
    return {
      // switchFlat: true
      content: "张明，欢迎您！"
    }
  },
  methods: {
    switcIntroduce(){
      // this.switchFlat = !this.
      this.content = "配电岗位胜任力介绍，价值说明"
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
<style scoped>
  .home-main{
    /* display: flex;
    justify-content:center;
    align-items:center; */
    border-top: 1px solid #E9EBEB;
    background-image: url(../../assets/home-background.jpg);
    background-size: 85% 100%;
    background-repeat: no-repeat;
    height: 100%;
    position: fixed;
    width: 100%;
    /* z-index: -1; */
  }
  .home-background{
    display: flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    font-size: 25px;
    font-weight: bold;
    background-image: url(../../assets/introduce.png);
    background-size: 100% 100%;
    position: fixed;
    height: 300px;
    width: 500px;
    margin-left: 25%;
    margin-top: 5%;
  }
</style>
